package com.igen.rxnetaction;

import android.app.Application;
import android.content.Context;


/**
 * Created by hp on 2016/11/14.
 */

public class MyApplication extends Application {
    private static Context appContext;

    /**
     * 当某些操作需要申请uid，此变量作为全局变量记录申请者
     */

    public static Context getAppContext() {
        return appContext;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        com.orhanobut.logger.Logger
                .init("Logger")
                .methodCount(10);
        appContext = getApplicationContext();
    }
}
